Repository navigation
"rolled" means the deployment's new pods are ready, not the old one still terminating - #37
Conversation
…till terminating kobo's upgrade on prod (2026-11-30, run 2): the setup PR's CI applied the deployment, whose template now named the new digest, and under Recreate the old pod began terminating. Its containers still reported ready, so wait_rolled read "template on the digest, 1/1 pods ready" and said rolled at 20:41:55Z. The new pod was created at 20:42:15Z, ready at 20:43:32Z, and the deploy run was still in flight. The receipt was the old pod. pods_ready(ns, image="") now parses each pod's deletionTimestamp, image and container ready flags; pods_summary (pure, shared with the fake) drops any pod being deleted, and with the deployment's image given counts only pods of that repo, ready only when on that exact image. wait_rolled passes the image. The install's namespace-wide "N/N pods ready" keeps its meaning but no longer counts a terminating pod. Tests drive the real upgrade path with a per-poll pods script: old pod ready on the old image, old pod terminating, new pod not ready, new pod ready — done at the fourth poll only. Two mutations fail it: wait_rolled counting the namespace again, and the helper counting deleting pods. Signed-off-by: Shaz Chaudhri <shahzad@mac.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The form's one box a stranger had to type was the path to `cbl`, cabal's command-line client, built from a cabal checkout. The installer called it twice: `cbl login` to trade the bootstrap code for an operator token, and `cbl token mint-service` to mint the tokens liminal and kobo hold. Both are HTTP calls (POST /auth/bootstrap, POST /admin/token/mint-service with the bearer) to the cabal Service, through the port-forward the installer already opens for them. HttpCabal makes the two calls itself, keeps the operator token for the run and writes it nowhere; the tunnel logic is unchanged. The --cbl flag, $STACK_CBL, the profile's cbl box and the preflight row are gone; the Profile keeps a cbl field so older profiles files still load. Tests: the two calls against a small HTTP stand-in (paths, bodies, the bearer, a refused code, a mint before login); the tunnel test moves to HttpCabal. Signed-off-by: Shaz Chaudhri <shahzad@mac.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… for The add form's other box a stranger could not place was "Gojira checkout": the README told them to clone tenishai/gojira beside the installer, and the form asked where they had put it. Install Gojira needs the checkout (its install script, terraform, manifests), the App card reads its docs/github-app-setup.md and the env form its gojira.env.example; none of that needs the person to choose a directory. The stack file names the release: gojira.version, a tag of tenishai/gojira (the stranger file says v1.3.1, the latest release). Adding a profile fetches it once, a shallow clone into ~/.cache/stack/gojira/<version> ($STACK_CACHE overrides), and the three readers take it from there; a page render never clones, and a press whose fetch failed says why. A developer's own checkout is still gojira_repo on the settings form, and the repos dir's gojira clone still wins, so the dogfood keeps installing from main. The quickstart loses its git clone line. Tests: adding fetches once and renders never refetch; a stack file without a version is refused with the key's name; a failed fetch does not break the add and is a sentence on the press. Signed-off-by: Shaz Chaudhri <shahzad@mac.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Two more commits on this branch, at Shaz's ask, so one fc42eb1 — cabal is spoken to over HTTP; the stranger no longer builds a cbl. The installer made two calls through cabal's CLI (login with the bootstrap code, mint the service tokens). Both are HTTP calls to the cabal Service through the port-forward the installer already opens, so 7fef2fb — the Gojira checkout is fetched at the stack file's version, not asked for. Done when, added
Ember (SRE AI) |
The stranger, on the add-profile form: the stack file box says the shipped one is right as it is, so why look at a list I cannot edit? And does it matter where the Gojira env file goes? No to both. A new profile reads the stack file that ships with the installer and writes Gojira's values to ~/.config/stack/<name>/gojira.env; neither is asked. Profile settings keep both boxes for someone with their own copy, and a typed path still wins. The add form is now Name, Cluster, Kubeconfig, Google account, with Repo clones folded away. The env-page test that wanted a profile without an env file makes one through the profiles file, as an older file would. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Fourth commit on this branch, from the stranger run: 992b8f1 The add form stops asking for the stack file and the env file. The stranger's two questions on the add form: "the stack file box says the shipped one is right as it is, so why do I need to look at a list I can't edit?" and "does it really matter where the Gojira env file gets put?" No to both. A new profile reads the stack file that ships with the installer and writes Gojira's values to Done when (added to the list above):
Receipts: Ember (SRE AI) |
With the stack file and the env file gone, the kubeconfig was the last path on the add form, and it follows from the cluster pick: a cluster kubectl on this machine already knows is read through the machine's own kubeconfig; a cluster the install makes gets ~/.kube-<name>/config, so it stays out of the person's other kubectl work. The add form is Name, Cluster, Google account. Profile settings keep the box; a typed path wins. Found on the way: two UI tests reached a real kubectl through a kubeconfig that happens to exist on the development machine and points at a cluster that is gone, so they hung for a minute each. The UI tests now name a kubeconfig path that exists on no machine, and the whole check runs in 18 s instead of 32. The env-page test that wants a profile with no kubeconfig makes one through the profiles file, as an older file would. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Fifth commit, from the stranger run: The add form stops asking for the kubeconfig too (Shaz: "I think kubeconfig can go too"). The kubeconfig follows from the cluster pick: a cluster kubectl already knows is read through the machine's own kubeconfig; a cluster the install makes gets Done when:
Found on the way: two tests in Receipts: Ember (SRE AI) |
…place After the kubeconfig box left the add form, the stranger's reload showed ~/.kube/config in the Google account box. The server sent it empty: the browser restores a reloaded form's boxes by position, and the third box used to be the kubeconfig. The add form is autocomplete=off and resets itself on pageshow, so what the server sent is what the page shows. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Sixth commit: A reload never restores a removed box's text into the one now in its place. After e3bf014 the stranger's reload showed Done when: 12. The add form carries Ember (SRE AI) |
The stranger asked what "Building the apps from source" was about. It is --repos: a directory of the apps' own checkouts for someone developing them. The shipped stack file installs published images and needs none, so the box is on Profile settings only, beside the Gojira checkout. The add form is Name, Cluster, Google account and nothing folded away. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Seventh commit: The repo-clones box is a developer's; it leaves the add form. The stranger asked what "Building the apps from source" was about. It is Done when: 13. The add form has no Ember (SRE AI) |
Shaz, as the stranger: "can we also have a picker for the google logins? Those are usually in the same place." They are: gcloud auth list names every account this machine is logged in as and gcloud config says which one it uses now. The box is a pick of those with the current one selected, so a profile is pinned to an account from the start and survives a later `gcloud config set account`. A machine without gcloud still gets a box to type into. The settings pick shows the profile's own account even when gcloud no longer lists it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Eighth commit: The Google account is a pick, the one gcloud uses now picked (Shaz: "can we also have a picker for the google logins? Those are usually in the same place"). Done when: 14. With several accounts the add form renders Ember (SRE AI) |
Shaz, after the add form: "do you think you can apply similar changes to
this page?" The profile page met him with a red box ("needs values for
{org}… or pass --set") above the card about to ask for exactly those, a
paragraph about tokens, env files and contracts, a button that wrote "the
env file", and a table of GOJIRA_* keys "not written yet".
Now: no red box while the card asks (the tokens-missing reading is the
page's first step, not an error); one sentence on top; the GitHub
organization is a pick of the orgs gh belongs to and the GCP project a pick
of the projects the Google account sees, with "pick one" presumed for
neither, a box to type into when the tool offers none, and a saved value
the tool no longer lists still offered; each box has one line saying what
it is; the button says Save; what was written for Gojira is a folded
receipt once something is. The strip names the apps, not the stack file's
path. GitHubClient gains orgs() (gh api user/orgs).
Every test site that renders a profile page now passes fakes for gh and
gcloud, so no test reaches the real tools for the picks.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Ninth commit: The four-things card speaks to a stranger (Shaz: "given all that we've done with the first page, can you apply similar changes to this page?"). One pass with the same lens; he critiques the result as the stranger.
Done when: 15. A profile page whose stack file needs the four shows no Also: every test site that renders a profile page now passes fakes for gh and gcloud (the picks would otherwise call the real tools from the tests). Ember (SRE AI) |
…nts a checkout Shaz, at the App card after the four things. What he met: red text; "save the .pem next to your Gojira checkout" (he has none, the release is fetched for him); a path into ~/.cache for the walkthrough; 1234567 and ./github-app.pem in the boxes as if set (the example's placeholders, copied into a fresh env file); and a link to make the App in tenishai, the apps' upstream org, rather than the org he had just named. Now the card is not red, the App is made in the org the four things named, the key is kept somewhere on this machine (the profile's config dir is suggested), the walkthrough is a link to the doc at the release the stack file names, and a file seeded from gojira.env.example starts with both App lines blank; a file still holding the example's pair reads as no App. The apps table's column is "Version", not "Running": it is what the stack file names. Found underneath: Install Gojira was gated on profile.gojira_repo, which a stranger's profile has not had since the release is fetched at gojira.version; the page would have said "Set the profile's Gojira checkout" right after Done. The env file is the only gate now. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Tenth commit: The GitHub App card speaks to a stranger; Install Gojira no longer wants a checkout. At the App card the stranger met: red text; "save the .pem next to your Gojira checkout" (he has no checkout, the release is fetched for him); a path into Now: not red; the App link goes to the org the four things named; the key is kept "somewhere on this machine" with the profile's config dir suggested; the walkthrough links to Found underneath, a real stop: Install Gojira was gated on Done when:
Both fail at 263b3ed. Ember (SRE AI) |
… card put it
Shaz, after Done on the App card, saw "no Gojira on this cluster yet" and
an Install Gojira that promised to install onto the cluster. There was no
cluster. His profile pins ~/.kube-<name>/config, which terraform has not
written yet; kubectl with that file talks to nothing, and its "no" to a
namespace probe looks exactly like an empty cluster's. The page now lists
the namespaces first and a cluster that cannot be listed is unreadable,
which with GOJIRA_TERRAFORM=1 and a CLUSTER in the env file is "no cluster
yet": the button says it makes the cluster first. Check says the same in
plain words, "no cluster yet: Install Gojira makes <cluster> in <project>
(<region>)", where it used to fail with "Is KUBECONFIG the install's".
The same Check warned that ~/.config/stack/github-app.pem was not there:
the stack file named a place for the App's key while the card had stored
its real path. A file: path may now say {app_pem}, the key wherever the
App card put it (GOJIRA_GITHUB_APP_PEM in the env file), read by the run
and by Check; Stack.load lets that one late token stand in a stack file.
The shipped stack file says file:{app_pem}.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Eleventh commit: No cluster yet reads as no cluster yet; the App's key is wherever the card put it. Three findings from the stranger's screen after Done:
Done when:
Negative: the four page/preflight/site tests fail at 1c8294b; the steps test cannot be run against the old code without a stub because the old run pauses for up to an hour waiting for a file literally named Ember (SRE AI) |
…ath it finds Shaz pressed Install Gojira. Terraform made the cluster, then install.sh stopped: "pem not found at ~/tenish-room.pem". The card had stored the path as he typed it; Done passed because Python expands ~, and Gojira's preflight tests the same string in the shell, where ~ is a character. The card stores the expanded path. Install Gojira reads the env file before running and, when GOJIRA_GITHUB_APP_PEM starts with ~, writes the full path into the file (losslessly) and says so on a run line, so a file an older card wrote works on the next press without a hand edit. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Twelfth commit: The App card stores the key's full path; Install Gojira repairs a Done when: 21. Done with Ember (SRE AI) |
The stranger, watching Install all 4: "nothing changes, I don't really know what's happening and wonder if it's actually doing anything or stuck". The run had ten lines and was quietly polling a deploy run on GitHub for minutes; a quiet page and a stuck page look the same. Every wait in the engine (Gojira provisioning, a setup or pin PR, the deploy run on GitHub, pods, a fresh bootstrap code, the setup command in the pod) now tells the run what it waits on, with the link where there is one and for how long, through Options.now; the wait clears it when it ends. The run keeps it as Run.now, never written to the run's file, and the lines block shows it as a "now" line under the lines while the run runs. The CLI ignores it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Thirteenth commit: The run page says what it is waiting on, and for how long. The stranger, watching Install all 4 sit on ten lines: "nothing changes, I don't really know what's happening and wonder if it's actually doing anything or stuck". It was polling a deploy run on GitHub. Every wait in the engine reports what it waits on, with the link where there is one and the elapsed time, through a new Done when: 22. A perform that calls (What the stranger's run was actually stuck on is not the page: the v1.3.1 generator reads the org variable Ember (SRE AI) |
…map is updated Run 10 of the stranger's install stopped at its last wiring step: "cabal mint failed: mint-service doesn't mint operator tokens; use bootstrap or POST /auth/renew". cabal 0.5.2 (its #403) refuses to mint a long-lived operator token over HTTP, and kobo's CABAL_OPERATOR_TOKEN is exactly that: kobo reads it once at boot and never renews it. The old cbl path had hidden the refusal behind the same words. Scope `operator` in a cabal-token source is now the operator token this run traded the bootstrap code for, which is what cabal's message says to do; the stranger's cabal identity sets operator_token_ttl_seconds to 90 days so that login lasts as long as the service tokens the run mints. kobo should renew its token itself one day; until then this is honest about what it holds. cabal on the stranger's cluster was already up with the one-hour identity, and "configmap exists" would have left it there. A configmap whose file now says something else is updated and its app restarted to read it, before the bootstrap login that follows. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Fourteenth commit: kobo gets the operator token the run logged in with; a changed configmap is updated. The stranger's run 10 got litellm, cabal and liminal up and stopped at kobo's token: cabal 0.5.2 refuses to mint long-lived operator tokens (#403), kobo 0.3.86 reads
Done when: 23. The whole-stack install mints only liminal's token and writes kobo's For kobo/cabal upstream (to file): kobo should renew its operator token via Ember (SRE AI) |
…it asks Two more from the stranger's run 11. Every press rewrote one file in each deploy repo and provisioned the app again. Each upstream's k8s/base/deployment.yaml carries an arm64 node selector from the dogfood on spark; Gojira's setup PR strips it, since placement is Gojira's, and the installer copied the upstream's file back on the next press. A base file the deploy repo already has is Gojira's now and is left alone on reruns; gojira.yaml stays the installer's and is kept current; a base file the repo lacks is added. The restart after cabal's ConfigMap changed stopped the run with "did not answer in 60s": restart asked kubectl to wait five minutes for the rollout and the wrapper around kubectl allowed sixty, while cabal's pod sat Pending for a node on Autopilot. The wait gets the time it asks for. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Fifteenth commit: A base file Gojira rewrote is left alone; a restart waits as long as it asks. From run 11.
Done when: 24. After Gojira rewrites Upstream note (not filed): the arm64 selector and toleration in Ember (SRE AI) |
Found while reading the org.yaml kobo's bootstrap wrote on the stranger's
cluster: cabal_url and agent_endpoint_template were null. The kobo config
template named the tool gateway (liminal) but never cabal, so a shared
thread between two agents would have said "the switchboard is not
configured" (the dogfood set both by hand in its org repo, 2026-10-08).
Both are in the template now; {name} there is kobo's own token, which the
install's filler leaves alone.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Sixteenth commit: The stranger's kobo config names the switchboard. Found on the way, for kobo (to file, Kyle's): the stranger's kobo booted, cloned Ember (SRE AI) |
Shaz, after the room read another cluster's org.yaml: "there's nothing in the installer that tells me what needs to be there". kobo reads <org>/kobo-config when it starts and makes one only when the name answers nothing. On the stranger's cluster the name answered: an archived repo from another cluster, renamed, still forwarded by GitHub, and the room merged its values over the install's own and wrote them into the fresh repo it then made. Check now has a row for every app whose config template names an org_repo: absent, and the app's first run makes it; present and naming this install's project and cluster; present and naming another's, with what it says and what to do; or a rename forward, which is a stop, since a clone follows it. GitHubClient.repo_resolves answers the name GitHub gives after any forward. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
|
Seventeenth commit: Check names the org config repo kobo reads at boot (Shaz: "there's nothing in the installer that tells me what needs to be there"). A row per app whose config template names an Done when: 25. Ember (SRE AI) |
Found on prod today, kobo v0.3.81 → v0.3.86 through the UI (run 2 on the prod profile): the run said "rolled, 1/1 pods on sha256:e8068497…" at 20:41:55Z. At that moment the old pod was terminating (still reporting ready), the new pod did not exist yet (created 20:42:15Z, ready 20:43:32Z) and the deploy run was still in flight. The done check read the deployment's template image (already the new digest once CI applied it) and counted every ready pod in the namespace.
What changes
pods_ready(ns, image="")reads each pod's deletionTimestamp, image and container ready flags. A pod being deleted is never counted. With the deployment's image given, only pods of that repo count, and a pod is ready only when it runs that exact image.wait_rolledpasses the deployment's image, so done is the deployment's own live pods ready on the new digest.pods_summaryis a pure function the fake uses too, so the test counts pods the way the installer does.Done when
make check: ruff, mypy 31 files, 190 passed. Mutations: wait_rolled counting the namespace again fails test 1; the helper counting deleting pods fails the helper test.Not run through Inkling: found and fixed mid-upgrade with Shaz as the tester.
Ember (SRE AI)
🤖 Generated with Claude Code